package com.jy.adscm.dealer.bean;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-16
 */
public class DealerSystemLoginUser{


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 经销商Id
     */
    private Integer did;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 操作权限
     */
    private String permission;
    /**
     * 创建者
     */
    private  String creator;
    /**
     * 创建时间
     */
    private Date createTime;

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        return "DealerSystemLoginUser{" +
        "id=" + id +
        ", did=" + did +
        ", loginName=" + loginName +
        ", permission=" + permission +
        "}";
    }
}
